package org.one.entity;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.HttpRequest;
import lombok.Data;
import org.one.servlet.OneServlet;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Classname : TranslatorDataWrapper
 * @Description : 传输数据包装类
 * @Author : cty
 * @Date 2023/6/11 20:25
 */

@Data
public class TranslatorDataWrapper {

    private Object msg;

    private ChannelHandlerContext ctx;

    // key为servlet的简单类名，value为对应servlet类的全限定性类名
    private Map<String, String> nameToClassNameMap;

    // key为servlet的简单类名，value为对应servlet实例
    private Map<String, OneServlet> nameToServletMap;
}
